<p id="notice"><%= notice %></p>

<p>
  <b>Date:</b>
  <%= @driving_lesson.date %>
</p>

<p>
  <b>Start time:</b>
  <%= @driving_lesson.start_time %>
</p>

<p>
  <b>End time:</b>
  <%= @driving_lesson.end_time %>
</p>

<p>
  <b>Instructor:</b>
  <%= link_to @driving_lesson.instructor.full_name, @driving_lesson.instructor %>
</p>

<p>
  <b>Student:</b>
  <%= link_to @driving_lesson.student.full_name, @driving_lesson.student %>
</p>

<p>
  <b>Car:</b>
  <%= link_to @driving_lesson.car.display, @driving_lesson.car %>
</p>

<p>
  <b>Topic:</b>
  <%= link_to @driving_lesson.topic.name, @driving_lesson.topic %>
</p>

<p>
  <b>Grade:</b>
  <%= @driving_lesson.grade %>
</p>

<p>
  <b>Comment:</b>
  <%= @driving_lesson.comment %>
</p>

<% unless @current_user.student? %>
  <%= link_to 'Edit', edit_timeslot_driving_lesson_path(@driving_lesson.timeslot) %>
<% end %>
